File System

Screen Shot 2018-10-22 at 19.49.51.png
Layout of the file system:
  • each physical drive can be divided into several partitions
  • each partition can contain one file system
Each file system contains:
  1. boot block(s);
  2. superblock;
  3. inode list;
  4. data blocks.
A boot block may contain the bootstrap code that is read into the machine upon booting. A superblock describes the state of the file system:
  • how large it is;
  • how many files it can store;
  • where to find free space on the file system;
  • who has ownership of it;
  • and more.
The inode list is an array of «Information nodes» analogous to the fat (file allocation table) system in ms-dos. Data blocks start at the end of the inode list and contain file data and directory blocks.
inodes usually start at 1 - which is bad block, meaning that a file is damaged physically or virtually, 2 - is root, and usually 3 - is /dev/
inodes resources:
В Linux/Unix все является файлом, кроме потоков, процессов и ядра
Также, правильнее сказать, что все скорее является потоком байтов.